# -*- coding: utf-8 -*-

"""
配置文件
"""
import os

# 日志
flask_app_log = 'flask.app'
log_file_name = r'./logs/log.log'
log_file_max_bytes = 1 * 1024
log_file_backup_count = 100
log_file_format = '%(asctime)s - %(thread)d - [%(levelname)s] - {%(pathname)s:%(lineno)d} (%(funcName)s) - %(message)s'
log_console_format = log_file_format

# 数据库配置

database_config = {
    "host": "47.106.2.21",
    "port": 3306,
    "user": 'pf_user',
    "passwd": "TfSXwutSByOBVEGY",
    "db": "pfdb",
}

# 下载文件的根目录
download_root = os.getcwd()
